home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Links / tv-remote.izs < prev    next >
Text File  |  2005-08-07  |  11KB  |  215 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>TV remote control
  4.  
  5. <!/TITLE>
  6.  
  7. <!DESCRIPTION>
  8. <!/DESCRIPTION> 
  9.  
  10. <!CATEGORY>links<!/CATEGORY>
  11.  
  12. <!SCRIPT>
  13. <!-- START OF SCRIPT -->
  14. <script language="JavaScript">
  15. <!--
  16. function go_to_station(){
  17.         if (document.stationform.stationselect.options[0].selected){
  18.                 window.location.href = "http://www.abctelevision.com";} 
  19.         else if (document.stationform.stationselect.options[1].selected)                
  20.         {       window.location.href = "http://www.cbs.com";}
  21.         else if (document.stationform.stationselect.options[2].selected)                
  22.         {       window.location.href = "http://www.nbc.com";}   
  23.         else if (document.stationform.stationselect.options[3].selected)                
  24.         {       window.location.href = "http://www.foxnetwork.com";}    
  25.         else if (document.stationform.stationselect.options[4].selected)                
  26.         {       window.location.href = "http://www.filmzone.com/SpaceGhost/cartoonnet.html";}   
  27.         else if (document.stationform.stationselect.options[5].selected)                
  28.         {       window.location.href = "http://www.discovery.com";}     
  29.         else if (document.stationform.stationselect.options[6].selected)                
  30.         {       window.location.href = "http://www.cs.brandeis.com";}   
  31.         else if (document.stationform.stationselect.options[7].selected)                
  32.         {       window.location.href = "http://www.qvc.com";}   
  33.         else if (document.stationform.stationselect.options[8].selected)                
  34.         {       window.location.href = "http://www.historychannel.com";}        
  35.         else if (document.stationform.stationselect.options[9].selected)                
  36.         {       window.location.href = "http://www.mtv.com";}   
  37.         else if (document.stationform.stationselect.options[10].selected)               
  38.         {       window.location.href = "http://www.cnn.com";}   
  39.         else if (document.stationform.stationselect.options[11].selected)               
  40.         {       window.location.href = "http://www.aetv.com";}  
  41.         else if (document.stationform.stationselect.options[12].selected)               
  42.         {       window.location.href = "http://www.amctv.com";} 
  43.         else if (document.stationform.stationselect.options[13].selected)               
  44.         {       window.location.href = "http://www.bravotv.com";}       
  45.         else if (document.stationform.stationselect.options[14].selected)               
  46.         {       window.location.href = "http://www.c-span.org";}        
  47.         else if (document.stationform.stationselect.options[15].selected)               
  48.         {       window.location.href = "http://www.comcentral.com";}
  49.         else if (document.stationform.stationselect.options[16].selected)               
  50.         {       window.location.href = "http://espnet.sportszone.com";} 
  51.         else if (document.stationform.stationselect.options[17].selected)               
  52.         {       window.location.href = "http://www.fxnetworks.com";}    
  53.         else if (document.stationform.stationselect.options[18].selected)               
  54.         {       window.location.href = "http://www.hbohomevideo.com";}  
  55.         else if (document.stationform.stationselect.options[19].selected)               
  56.         {       window.location.href = "http://www.scifi.com";} 
  57.         else if (document.stationform.stationselect.options[20].selected)               
  58.         {       window.location.href = "http://showtimeonline.com";}    
  59.         else if (document.stationform.stationselect.options[21].selected)               
  60.         {       window.location.href = "http://vh1.com";}       
  61.         else if (document.stationform.stationselect.options[22].selected)               
  62.         {       window.location.href = "http://www.weather.com";}       
  63.         else if (document.stationform.stationselect.options[23].selected)               
  64.         {       window.location.href = "http://www.disneychannel.com";} 
  65.         return true;    
  66.         }
  67. function textValue(){   
  68.         var stationInteger, stationString       
  69.         stationInteger=document.stationform.stationselect.selectedIndex 
  70.         stationString=document.stationform.stationselect.options[stationInteger].text   
  71.         document.stationform.stationtext.value = "Go to " + stationString +"!"  }
  72. //-->
  73. </script>
  74. <CENTER>
  75. Select a television station from the list to go to it's site
  76. <form name="stationform">
  77. <select name="stationselect" onChange="textValue()" multiple size="5">
  78. <option>ABC
  79. <option>CBS
  80. <option>NBC
  81. <option>Fox
  82. <option>Cartoon Network
  83. <option>Discovery Channel
  84. <option>Warner Brothers Network
  85. <option>QVC
  86. <option>History Channel
  87. <option>MTV
  88. <option>CNN
  89. <option>A&E
  90. <option>American Movie Classics(AMC)
  91. <option>Bravo
  92. <option>C-SPAN
  93. <option>Comedy Central
  94. <option>ESPN
  95. <option>fX
  96. <option>HBO
  97. <option>Sci-Fi Channel
  98. <option>Showtime
  99. <option>VH-1
  100. <option>Weather Channel
  101. <option>Disney Channel
  102. </select>
  103. <br><p>
  104. <input type="button" name="stationbutton" value="Go!" onClick="go_to_station()">
  105. <p>
  106. <input type="text" name="stationtext" value="" size="35" maxlength="35">
  107. <p>
  108. </form>
  109. </CENTER>
  110. <!-- END OF SCRIPT -->
  111. <!/SCRIPT>
  112.  
  113. <!PREVIEW>
  114. <!-- START OF SCRIPT -->
  115.  
  116. <script language="JavaScript">
  117. <!--
  118. function go_to_station(){
  119.         if (document.stationform.stationselect.options[0].selected){
  120.                 window.location.href = "http://www.abctelevision.com";} 
  121.         else if (document.stationform.stationselect.options[1].selected)                
  122.         {       window.location.href = "http://www.cbs.com";}
  123.         else if (document.stationform.stationselect.options[2].selected)                
  124.         {       window.location.href = "http://www.nbc.com";}   
  125.         else if (document.stationform.stationselect.options[3].selected)                
  126.         {       window.location.href = "http://www.foxnetwork.com";}    
  127.         else if (document.stationform.stationselect.options[4].selected)                
  128.         {       window.location.href = "http://www.filmzone.com/SpaceGhost/cartoonnet.html";}   
  129.         else if (document.stationform.stationselect.options[5].selected)                
  130.         {       window.location.href = "http://www.discovery.com";}     
  131.         else if (document.stationform.stationselect.options[6].selected)                
  132.         {       window.location.href = "http://www.cs.brandeis.com";}   
  133.         else if (document.stationform.stationselect.options[7].selected)                
  134.         {       window.location.href = "http://www.qvc.com";}   
  135.         else if (document.stationform.stationselect.options[8].selected)                
  136.         {       window.location.href = "http://www.historychannel.com";}        
  137.         else if (document.stationform.stationselect.options[9].selected)                
  138.         {       window.location.href = "http://www.mtv.com";}   
  139.         else if (document.stationform.stationselect.options[10].selected)               
  140.         {       window.location.href = "http://www.cnn.com";}   
  141.         else if (document.stationform.stationselect.options[11].selected)               
  142.         {       window.location.href = "http://www.aetv.com";}  
  143.         else if (document.stationform.stationselect.options[12].selected)               
  144.         {       window.location.href = "http://www.amctv.com";} 
  145.         else if (document.stationform.stationselect.options[13].selected)               
  146.         {       window.location.href = "http://www.bravotv.com";}       
  147.         else if (document.stationform.stationselect.options[14].selected)               
  148.         {       window.location.href = "http://www.c-span.org";}        
  149.         else if (document.stationform.stationselect.options[15].selected)               
  150.         {       window.location.href = "http://www.comcentral.com";}
  151.         else if (document.stationform.stationselect.options[16].selected)               
  152.         {       window.location.href = "http://espnet.sportszone.com";} 
  153.         else if (document.stationform.stationselect.options[17].selected)               
  154.         {       window.location.href = "http://www.fxnetworks.com";}    
  155.         else if (document.stationform.stationselect.options[18].selected)               
  156.         {       window.location.href = "http://www.hbohomevideo.com";}  
  157.         else if (document.stationform.stationselect.options[19].selected)               
  158.         {       window.location.href = "http://www.scifi.com";} 
  159.         else if (document.stationform.stationselect.options[20].selected)               
  160.         {       window.location.href = "http://showtimeonline.com";}    
  161.         else if (document.stationform.stationselect.options[21].selected)               
  162.         {       window.location.href = "http://vh1.com";}       
  163.         else if (document.stationform.stationselect.options[22].selected)               
  164.         {       window.location.href = "http://www.weather.com";}       
  165.         else if (document.stationform.stationselect.options[23].selected)               
  166.         {       window.location.href = "http://www.disneychannel.com";} 
  167.         return true;    
  168.         }
  169. function textValue(){   
  170.         var stationInteger, stationString       
  171.         stationInteger=document.stationform.stationselect.selectedIndex 
  172.         stationString=document.stationform.stationselect.options[stationInteger].text   
  173.         document.stationform.stationtext.value = "Go to " + stationString +"!"  }
  174. //-->
  175. </script>
  176. <CENTER>
  177. Select a television station from the list to go to it's site
  178. <form name="stationform">
  179. <select name="stationselect" onChange="textValue()" multiple size="5">
  180. <option>ABC
  181. <option>CBS
  182. <option>NBC
  183. <option>Fox
  184. <option>Cartoon Network
  185. <option>Discovery Channel
  186. <option>Warner Brothers Network
  187. <option>QVC
  188. <option>History Channel
  189. <option>MTV
  190. <option>CNN
  191. <option>A&E
  192. <option>American Movie Classics(AMC)
  193. <option>Bravo
  194. <option>C-SPAN
  195. <option>Comedy Central
  196. <option>ESPN
  197. <option>fX
  198. <option>HBO
  199. <option>Sci-Fi Channel
  200. <option>Showtime
  201. <option>VH-1
  202. <option>Weather Channel
  203. <option>Disney Channel
  204. </select>
  205. <br><p>
  206. <input type="button" name="stationbutton" value="Go!" onClick="go_to_station()">
  207. <p>
  208. <input type="text" name="stationtext" value="" size="35" maxlength="35">
  209. <p>
  210. </form>
  211. </CENTER>
  212. <!-- END OF SCRIPT -->
  213. <!/PREVIEW>
  214.  
  215. <!RELATED>NONE<!/RELATED>